<?php
/**
 * (model) 移库订单-明细
 */
namespace App\Models\OverSeasIn;

use App\Models\Basics\SysCountry;
use App\Models\Basics\SysArea;
use App\Models\OverSeasBa\Warehouse;
use App\Models\Product\ProductSku;
use Illuminate\Database\Eloquent\Model;
class RemovaleOrderDetail extends Model
{
    protected $table = 'os_in_removal_order_detail';

    protected $guarded = [];

    public static $_status = [
        1 => '未完结',
        2 => '已完结',
    ];

    public function warehouse(){
        return $this->belongsTo(Warehouse::class,'warehouse_id');
    }

    public function area(){
        return $this->belongsTo(SysArea::class,'area_id');
    }

    public function country(){
        return $this->belongsTo(SysCountry::class,'country_id');
    }

    public function sku(){
        return $this->belongsTo(ProductSku::class,'psku_id');
    }


}
